package file.Practice;

import java.io.File;
import java.io.IOException;

public class Create {
    public static void main(String[] args) throws IOException{
        File file1 = new File("./src//file//txtAll");
        if (file1.exists()){
            System.out.println(1);
        }else {
            file1.mkdir();
            System.out.println(2);
        }
        for (int i = 1; i <=100; i++) {
            File file = new File("./src//file//txtAll//text"+i+".txt");
            if (file.exists()){
                System.out.println("1");
            }else {
                file.createNewFile();
                System.out.println(2);
            }
        }



    }
}
